/**
 * @file key_api.h
 * @brief 用于提供首扇区参数读取操作接口
 * @author  ()
 * @version 1.0
 * @date 2024-11-16
 * 
 * @copyright Copyright (C) 2019 Queclink Wireless Solutions (ShenZhen) Co., Ltd. All Rights Reserved.
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version <th>Author  <th>Description
 * <tr><td>2024-11-16 <td>1.0     <td>     <td>内容
 * </table>
 */
#ifndef __KEY_API_H
#define __KEY_API_H

#include <stdint.h>
#include <stddef.h>
#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

int32_t load_quec_sn(char *sn, ssize_t len);
int32_t save_quec_sn(char *sn);


int32_t load_quec_imei(char *imei, ssize_t imei_len);
int32_t save_quec_imei(char *imei);

int32_t save_fota_idle(void);
int32_t save_fota_ready(void);
int32_t load_fota_flag(char *fota_flag, uint32_t fota_flag_len);

#ifdef __cplusplus
}
#endif

#endif // __KEY_API_H